@use 'base/css_variables';

.TopBar-button {
    background: none;
    border: none;
    color: rgba(var(--center-channel-color-rgb), 0.7);
    padding: 5px 12px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    -webkit-app-region: no-drag;
}

.TopBar-button--newTab {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 4px;
    min-width: 28px;
}

.TopBar-button--newTab_divider {
    width: 1px;
    height: 28px;
    margin: 0 4px;
    background-color: rgba(var(--center-channel-color-rgb), 0.08);
}

.TopBar-button--newTab_container {
    display: flex;
}

.TopBar-button--newTab_container:hover .TopBar-button--newTab_divider {
    visibility: hidden;
}

.TopBar-button--newTab:hover {
    border-left: none;
}

.TopBar-button:hover {
    background-color: rgba(var(--center-channel-bg-rgb), 0.56);
}

.TopBar-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
